﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'GetDetalleNotaSalidaByNotaSalidaID')
	BEGIN
		DROP  Procedure  GetDetalleNotaSalidaByNotaSalidaID
	END

GO

CREATE Procedure GetDetalleNotaSalidaByNotaSalidaID

	(
		@idNotaSalida int 
	)


AS
begin
SELECT     IdNotaSalida,
           IdBien,
           Cantidad
FROM       dbo.DetalleNotaSalida
where   IdNotaSalida=@idNotaSalida
end

GO


GRANT EXEC ON GetDetalleNotaSalidaByNotaSalidaID TO PUBLIC

GO


